import React from 'react'
import ReactDOM from 'react-dom'
import classes from './Backdrop.module.css'


const backdropDOM = document.getElementById('backdrop-root')

const Backdrop = (props) => {

	return ReactDOM.createPortal(
		<div
			{...props}
			className={`${classes.Backdrop} ${props.className}`} >
			{props.children}
		</div>
		, backdropDOM)

}

export default Backdrop